package com.mida.bms.report.service;

import com.mida.bms.report.vo.ImageVo;
import com.mida.tool.common.result.ActionResult;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;
import java.util.List;

/**
 * @author bzy
 */
public interface ImageService {

    /**
     * 采集到的图片上传
     * @param file 文件
     * @return
     */
    String uploadImg(MultipartFile file, String postId, String personSoid, String customerSoid,
                     String registrationSoid, Long loginUserId) throws IOException;





    List<ImageVo> queryImageList(String postId) throws IOException;


    /**
     * 删除图片
     * @param postId 检查id
     * @param imageName 图片名称
     * @return
     */
    ActionResult deleteImage(String postId, String imageName) throws IOException;

    ActionResult decompression(MultipartFile file, String postId, String personSoid, String customerSoid,
                               String registrationSoid,String fileType) throws IOException;


    ActionResult decompressionList(MultipartFile[] file, String postId, String personSoid, String customerSoid,
                               String registrationSoid,String fileType) throws IOException;


    ActionResult maintainData(@RequestParam("postId")String postId, @RequestParam("personSoid")String personSoid,
                              @RequestParam("customerSoid")String customerSoid,
                              @RequestParam("registrationSoid")String registrationSoid,
                              @RequestParam("imagePath")String imagePath);

}
